#ifndef VIDEOWIDGET_H
#define VIDEOWIDGET_H

#include <QWidget>

#include "LitePlayer.h"
#include "MediaProp.h"
#include "MediaEvent.h"
#include <memory>

typedef std::shared_ptr< av::LitePlayer >   LitePlayerPtr;


class VideoWidget : public QWidget
{
    Q_OBJECT
public:
    explicit VideoWidget(QWidget *parent = 0);

    bool open(const QString& url);
    void close();

signals:

public slots:

protected:
    void setupUI();

    void setupPlayer();

protected:
    LitePlayerPtr   m_player;
};

#endif // VIDEOWIDGET_H
